/* 颜色列表 */
export const colorList = [
  {
    label: "白色",
    value: "white"
  },
  {
    label: "黑色",
    value: "black"
  },
  {
    label: "红色",
    value: "red"
  },
  {
    label: "透明",
    value: "transparent"
  }
];
/* 闪灯颜色列表 */
export const lightColor = [
  {
    label: "红色",
    value: "1"
  },
  {
    label: "绿色",
    value: "2"
  },
  {
    label: "蓝色",
    value: "3"
  }
];

/* 设备颜色列表 */
export const deviceColorList = [
  {
    label: "黑白",
    value: "0",
    colorList: ["white", "black", "transparent"]
  },
  {
    label: "黑白红",
    value: "1",
    colorList: ["white", "black", "red", "transparent"]
  },
  {
    label: "黑白黄",
    value: "2",
    colorList: ["white", "black", "yellow", "transparent"]
  },
  {
    label: "黑白红黄",
    value: "3",
    colorList: ["white", "black", "red", "yellow", "transparent"]
  }
];

/* 字体列表 */
export const fontFamilyList = ref([
  {
    title: "Microsoft Yahei",
    value: "Microsoft Yahei"
  },
  {
    title: "zfull",
    value: "zfull"
  }
]);

/**
 * 注释: 九宫格位置
 *
 * */

export const positionMap = ref([
  {
    title: "左上",
    value: "flex-q"
  },
  {
    title: "上中",
    value: "flex-w"
  },
  {
    title: "右上",
    value: "flex-e"
  },
  {
    title: "中左",
    value: "flex-a"
  },
  {
    title: "中",
    value: "flex-s"
  },
  {
    title: "中右",
    value: "flex-d"
  },
  {
    title: "下左",
    value: "flex-z"
  },
  {
    title: "下中",
    value: "flex-x"
  },
  {
    title: "下右",
    value: "flex-c"
  }
]);
/* 

查询范围 (
-:本门店 
0:本门店及共享 
1:直属子门店 
2:本门店及直属下级门店 
3:本门店及所有下级门店 
4:超级管理员共享 
5:上级共享)
*/
export const scopeOptions = [
  {
    label: "本门店",
    value: "-"
  },
  {
    label: "本门店及共享",
    value: "0"
  },
  {
    label: "直属子门店",
    value: "1"
  },
  {
    label: "本门店及直属下级门店",
    value: "2"
  },
  {
    label: "本门店及所有下级门店",
    value: "3"
  },
  {
    label: "超级管理员共享",
    value: "4"
  },
  {
    label: "上级共享",
    value: "5"
  }
];
/* 是否 */
export const isList = [
  {
    label: "是",
    value: "1"
  },
  {
    label: "否",
    value: "0"
  }
];
export const aliasOptions: any = {
  a: "分屏A",
  b: "分屏B"
};
export type ITime = {
  time?: "day" | "hour" | "min";
  value?: number;
  batch?: string;
  filterId?: string;
};
export type ITimeList = {
  label: string;
  value: {
    type: "day" | "hour" | "min";
    value?: number;
  };
};

export const reissueTimeList: ITimeList[] = [
  {
    label: "1小时内",
    value: {
      type: "hour",
      value: 1
    }
  },
  {
    label: "3小时内",
    value: {
      type: "hour",
      value: 3
    }
  },
  {
    label: "1天内",
    value: {
      type: "day",
      value: 1
    }
  },
  {
    label: "7天内",
    value: {
      type: "day",
      value: 7
    }
  }
];
